Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Use cosine similarity in quickstart example #219

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Michael-JB
Copy link

  • Previously, the quickstart example used dot product distance. This didn't make much sense as the vectors in the example were not normalised. It also led to some weird-looking query results (e.g., searching for the exact vector of the Mumbai point does not return the Mumbai point in the result set). This commit changes the examples to use cosine similarity.
  • While I was in the area, I prefixed '/' to the HTTP request paths so that they're all correct and consistent.

- Previously, the quickstart example used dot product distance. This
  didn't make much sense as the vectors in the example were not
  normalised. It also led to some weird-looking query results. This
  commit changes the examples to use cosine similarity.
- While I was in the area, I prefixed '/' to the HTTP request paths so
  that they're all correct and consistent.
@generall
Copy link
Member

generall commented Oct 6, 2024

cc @davidmyriel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants